//
//  LYCollectionViewController.h
//  LYKitDemo
//
//  Created by Mac-Mini-KingVision on 16/1/26.
//  Copyright © 2016年 LiuWenYang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class LYCollectionViewController;
@class CollectionViewCell;
@protocol LYCollectionViewControllerDelegate <NSObject>

@optional

- (void)lyCollectionController:(LYCollectionViewController *)collectionController  didSelectedCellWithDataSrc:(id)dataSrc index:(NSIndexPath *)index;

-(void)lyCollectionController:(LYCollectionViewController *)collectionController didClickSubViewIncell:(CollectionViewCell *)cell subView:(id)subView indexPath:(NSIndexPath *)indexPath data:(id)data;
@end


@interface LYCollectionViewController : NSObject<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>



@property (nonatomic, strong) IBOutlet UICollectionView *collectionView;

@property(nonatomic,strong) IBInspectable NSString *classForCellString;

@property(nonatomic,assign) IBInspectable BOOL hasRefreshHeader;

@property(nonatomic,assign) IBInspectable BOOL hasLoadMoreFooter;

@property (nonatomic, assign) IBInspectable NSInteger column;

@property (nonatomic, assign) IBInspectable BOOL calculateSize;

@property(nonatomic, strong) NSMutableArray *dataSource;

@property (nonatomic, assign) NSInteger pageIndex;

@property (nonatomic, assign) NSInteger totalCount;



@end
